package com.example.gulimallware.enums;

public enum PurchaseStatusEnum {
    CREATED(0, "新建"),
    ASSIGNED(1, "已分配"),
    RECEIVE(2, "已领取"),
    FINISH(3, "已完成"),
    HASERROR(4, "有异常");
    private Integer code;
    private String name;

    PurchaseStatusEnum() {
    }

    PurchaseStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * 获取
     * @return code
     */
    public int getCode() {
        return code;
    }


    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }


}
